import documentItemMgtTpl from './documentItemMgt.html';
import commonDocumentTpl from '../documentItemMgt.commonDocument/commonDocument.html';
import assessmentPeaceTpl from '../assessmentPeace/assessmentPeace.html';
import equipmentInfoTpl from '../equipmentInfo/equipmentInfo.html';
import workerInfoTpl from '../workerInfo/workerInfo.html';
import workerInfo4DepartmentTpl from '../workerInfo/workerInfo4Department.html';
import workerInfo4SpecialWorkerTpl from '../workerInfo/workerInfo4SpecialWorker.html';
import dailyCheckTpl from '../dailyCheck/dailyCheck.html';
import crewSchedulingTpl from '../crewScheduling/crewScheduling.html';
import techTrainingTpl from '../techTraining/techTraining.html';
import safeDisclosureTpl from '../safeDisclosure/safeDisclosure.html';
import meetingTpl from '../meeting/meeting.html';

function routeConfig($stateProvider) {
  'ngInject';

  $stateProvider
    .state('documentItemMgt', {
      url: '/documentItemMgt/:type/:id/:role?taskId?referredBoxId',
      templateUrl: documentItemMgtTpl,
      controller: require('./documentItemMgt.controller'),
      controllerAs: 'documentItemMgt',
    })
    // 通用档案查询方法
    .state('documentItemMgt.commonDocument', {
      url: '/commonDocument?commonType',
      templateUrl: commonDocumentTpl,
      controller: require('../documentItemMgt.commonDocument/commonDocument.controller'),
      controllerAs: 'commonDocument',
    })
    // 人员管理页面
    .state('documentItemMgt.workerInfo', {
      url: '/workerInfo',
      templateUrl: workerInfoTpl,
      controller: require('../workerInfo/workerInfo.controller'),
      controllerAs: 'workerInfo',
    })
     // 三类人员页面
    .state('documentItemMgt.workerInfo4Department', {
      url: '/workerInfo4Department',
      templateUrl: workerInfo4DepartmentTpl,
      controller: require('../workerInfo/workerInfo.controller'),
      controllerAs: 'workerInfo',
    })
     // 特种人员页面
    .state('documentItemMgt.workerInfo4SpecialWorker', {
      url: '/workerInfo4SpecialWorker',
      templateUrl: workerInfo4SpecialWorkerTpl,
      controller: require('../workerInfo/workerInfo.controller'),
      controllerAs: 'workerInfo',
    })
    // 设备管理页面
    .state('documentItemMgt.equipmentInfo', {
      url: '/equipmentInfo',
      templateUrl: equipmentInfoTpl,
      controller: require('../equipmentInfo/equipmentInfo.controller'),
      controllerAs: 'equipmentInfo',
    })
    // 不定期检查
    .state('documentItemMgt.assessmentPeace', {
    	url: '/assessmentPeace',
      templateUrl: assessmentPeaceTpl,
      controller: require('../assessmentPeace/assessmentPeace.controller'),
      controllerAs: 'assessmentPeace',
    })
    // 日常巡查页面
    .state('documentItemMgt.dailyCheck', {
      url: '/dailyCheck',
      templateUrl: dailyCheckTpl,
      controller: require('../dailyCheck/dailyCheck.controller'),
      controllerAs: 'dailyCheck',
    })
    // 带班日志
    .state('documentItemMgt.crewScheduling', {
        url: '/crewScheduling',
        templateUrl: crewSchedulingTpl,
        controller: require('../crewScheduling/crewScheduling.controller'),
        controllerAs: 'crewScheduling',
    })
    // 安全交底
    .state('documentItemMgt.safeDisclosure', {
        url: '/safeDisclosure',
        templateUrl: safeDisclosureTpl,
        controller: require('../safeDisclosure/safeDisclosure.controller'),
        controllerAs: 'safeDisclosure',
    })
    // 教育培训
    .state('documentItemMgt.techTraining', {
        url: '/techTraining',
        templateUrl: techTrainingTpl,
        controller: require('../techTraining/techTraining.controller'),
        controllerAs: 'techTraining',
    })
    // 安全会议
    .state('documentItemMgt.meeting', {
        url: '/meeting',
        templateUrl: meetingTpl,
        controller: require('../meeting/meeting.controller'),
        controllerAs: 'meeting',
    });
}

export default routeConfig;